package com.chinasofti.etc.alcohol.web;

import javax.servlet.http.HttpSession;

public class BaseController {

    protected Integer getUserId(HttpSession session) {
        Object  userIdObj = session.getAttribute("userId");
        if(userIdObj!=null){
            int userId = (int) userIdObj;
            return userId;
        }
        return null;
    }
}
